package com.bailiban.repository;

import com.bailiban.entity.YesterdayIncreased;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;

/**
 * @author zhulang
 * @Classname YesterdayIncreasedRepository
 * @Description TODO
 * @Date 2020/3/18 23:04
 */
public interface YesterdayIncreasedRepository extends JpaRepository<YesterdayIncreased,Integer> {
    /**
     * 查询指定省份某日的新增数据
     * @param date
     * @param provinceId
     * @return
     */
    YesterdayIncreased findByDateAndProvinceCov_ProvinceId(Date date,Integer provinceId);
}
